package org.leon.service;

import java.util.Random;
import java.util.concurrent.TimeUnit;

public class DemoServiceImpl implements DemoService {

    private Random random = new Random();

    @Override
    public void methodA() {
        try {
            Thread.sleep(random.nextInt(100));
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        //System.out.println("call methodA");
    }

    @Override
    public void methodB() {
        try {
            Thread.sleep(random.nextInt(100));
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        //System.out.println("call methodB");
    }

    @Override
    public void methodC() {
        try {
            Thread.sleep(random.nextInt(100));
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        //System.out.println("call methodC");
    }
}
